package com.etime.service;

import com.etime.pojo.Order;
import com.github.pagehelper.PageInfo;
import com.etime.pojo.Ticket;

import java.util.List;

public interface TicketService {
    PageInfo<Ticket> getTicketByPage(Integer page);

    PageInfo<Ticket> getTicketByNo(Integer page, String train_no);

    boolean addTicket(Ticket ticket);

    Ticket getTicketById(Integer train_id);

    boolean editTicket(Ticket ticket);

    List<Ticket> getTicketBySth(Ticket ticket);

    void editTicketNum(Order order);
}
